<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>飞马测试固件下载中心</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="/third-part/bootstrap-4.1.3/css/bootstrap.min.css">
    <link href="/css/vendor/common.css" rel="stylesheet" type="text/css">
    <link href="/css/vendor/cmp-controls.css" type="text/css" rel="stylesheet">
    <link href="/css/vendor/firmware-center/login.less" type="text/css" rel="stylesheet/less">
    <script src="/js/less.min.js"></script>
</head>
<body class="enter-area">

<div class="container-fluid body-wrap">
    <div class="row-fluid">
        <div class="col-sm-0 col-md-12 bg-wrap">
            <img class="bg-computer" src="/images/firmware-download/computer@2x.png">
            <div class="row-fluid">
                <div class="col-sm-12 col-md-3 login-bg">
                    <img class="around" src="/images/firmware-download/around@2x.png">
                    <img class="logo" src="/images/firmware-download/feima-logo@2x.png">
                    <ul class="list-unstyled login-wrap">
                        <li class="title">DOWNLOAD</li>
                        <li class="small-title">飞马测试固件下载中心</li>
                        <li><input id="password" type="password" class="login-input" placeholder="密码" onfocus="if(placeholder=='密码') {placeholder=''}" onblur="if (value=='') {placeholder='密码'}">
                            <img class="login-btn" onclick="logIn()" src="/images/firmware-download/shape@2x.png"></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>

</body>
<script src="/js/baidu-statistics.js"></script>
<script src="/js/jquery-3.2.1.min.js"></script>
<script src="/third-part/bootstrap-4.1.3/js/bootstrap.min.js"></script>
<script src="/js/vendor/common.js"></script>
<script src="/js/vendor/cmp-controls.js"></script>
<script>
    $('.enter-area').bind('keyup', function(event) {

        if (event.keyCode == "13") {

            logIn();

        }

    });
    function logIn() {
        var password = $("#password").val();
        if (!password){
            FAlert("请输入密码！");
            return;
        }
        feimaPost("/firmware/loginFirmwareCenter", {
            "password": password
        }, function (result) {
            if(result.status==0){
                var id=getQueryString("id");
                if(id){
                    window.location.href = "/firmware/firmwareCenterDetail?id="+id;
                }else{
                    window.location.href = "/firmware/firmwareCenter";
                }

            }
        })
    }
</script>
</html>